<h1>CAMT Dashboard <%= link_to 'Log out', admin_logout_path %></h1>


<div class="fbblueboxlite">
  <div class="fbgreybox"><h2>Students</h2></div>
  <table rules="rows" frame="void">
    <tr>
      <th width="50px">Title </th>
      <th width="150px">First name</th>
      <th width="200px">Last name</th>
      <th width="100px">Student ID</th>
      <th width="100px">Status</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>

    <% @students.each do |student| %>
        <tr>
          <td><%= student.title %>
          <td><%= student.firstname %></td>
          <td><%= student.lastname %></td>
          <td><%= student.student_id %></td>
          <td><%= student.status %></td>
          <td><%= link_to 'Show', student%></td>
          <td><%= link_to 'Edit', edit_student_path(student) %></td>
          <td><%= link_to 'Delete', student, :confirm => 'Are you sure?', :method => :delete %></td>
        </tr>
    <% end %>
  </table>
</div>
<br />

<div class="fbgreyboxbuttom">
  <%= button_to 'New Student', new_student_path %> </div>
